__attribute__((naked))
int mySqrt(int x)
{
    __asm__ volatile
    (
        ".intel_syntax noprefix;"
        "cvtsi2sd xmm0,edi;"
        "sqrtsd xmm0,xmm0;"
        "cvttsd2si eax,xmm0;"
        ".att_syntax;"
        "ret;"                        
    );
}
